package pack1014;

// 计算器
public class Calculator {
    double a;
    double b;

    public double sum() {
        return a + b;
    }

    public double differ() {
        return a > b ? a - b : b - a;
    }

    public double multi() {
        return a * b;
    }


    public double division() {
        return a / b;
    }
}